useFixture(default)

def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_17'

	if window('Protocol Buffer Editor'):
		select('FileChooser', commonBits.sampleDir() + 'protoFieldTest2.bin')
		click('Edit1')
		rightclick('Table1', 'Line,1')
		select_menu('Edit Record')
		assert_p('Table', 'Content', '[[f01, 1, , [10000, 10001], [10000, 10001]], [f02, 2, , [10000, 10001], [10000, 10001]], [f03, 3, , [10000, 10001], [10000, 10001]], [f04, 4, , [10000, 10001], [10000, 10001]], [f05, 5, , [10000, 10001], [10000, 10001]], [f06, 6, , [100000000, 100000001], [100000000, 100000001]], [f07, 7, , [100000000, 100000001], [100000000, 100000001]], [f08, 8, , [100000000, 100000001], [100000000, 100000001]], [f09, 9, , [100000000, 100000001], [100000000, 100000001]], [f10, 10, , [100000000, 100000001], [100000000, 100000001]], [f11, 11, , [10000.0, 10001.0], [10000.0, 10001.0]], [f12, 12, , [1.0E8, 1.00000001E8], [1.0E8, 1.00000001E8]], [f13, 13, , [false, false], [false, false]], [f15, 14, , [\'100000000\',\'100000001\'], [\'100000000\',\'100000001\']], [f17, 15, , [OTHER, SALE], [OTHER, SALE]], [f19, 16, , [0000000001, 0000000002], [0000000001, 0000000002]]]')
		click('TextArea')
		assert_p('TextArea', 'Text', '{10000, 10001}	{10000, 10001}	{10000, 10001}	{10000, 10001}	{10000, 10001}	{100000000, 100000001}	{100000000, 100000001}	{100000000, 100000001}	{100000000, 100000001}	{100000000, 100000001}	{10000.0, 10001.0}	{1.0E8, 1.00000001E8}	{false, false}	{100000000, 100000001}	{OTHER, SALE}	{0000000001, 0000000002}')
		click('Right')
		assert_p('TextArea', 'Text', '{20000, 20001, 20002}	{20000, 20001, 20002}	{20000, 20001, 20002}	{20000, 20001, 20002}	{20000, 20001, 20002}	{200000000, 200000001, 200000002}	{200000000, 200000001, 200000002}	{200000000, 200000001, 200000002}	{200000000, 200000001, 200000002}	{200000000, 200000001, 200000002}	{20000.0, 20001.0, 20002.0}	{2.0E8, 2.00000001E8, 2.00000002E8}	{false, false, false}	{200000000, 200000001, 200000002}	{RETURN, OTHER, SALE}	{0000000002, 0000000003, 0000000004}')
		assert_p('Table', 'Content', '[[f01, 1, , [20000, 20001, 20002], [20000, 20001, 20002]], [f02, 2, , [20000, 20001, 20002], [20000, 20001, 20002]], [f03, 3, , [20000, 20001, 20002], [20000, 20001, 20002]], [f04, 4, , [20000, 20001, 20002], [20000, 20001, 20002]], [f05, 5, , [20000, 20001, 20002], [20000, 20001, 20002]], [f06, 6, , [200000000, 200000001, 200000002], [200000000, 200000001, 200000002]], [f07, 7, , [200000000, 200000001, 200000002], [200000000, 200000001, 200000002]], [f08, 8, , [200000000, 200000001, 200000002], [200000000, 200000001, 200000002]], [f09, 9, , [200000000, 200000001, 200000002], [200000000, 200000001, 200000002]], [f10, 10, , [200000000, 200000001, 200000002], [200000000, 200000001, 200000002]], [f11, 11, , [20000.0, 20001.0, 20002.0], [20000.0, 20001.0, 20002.0]], [f12, 12, , [2.0E8, 2.00000001E8, 2.00000002E8], [2.0E8, 2.00000001E8, 2.00000002E8]], [f13, 13, , [false, false, false], [false, false, false]], [f15, 14, , [\'200000000\',\'200000001\',\'200000002\'], [\'200000000\',\'200000001\',\'200000002\']], [f17, 15, , [RETURN, OTHER, SALE], [RETURN, OTHER, SALE]], [f19, 16, , [0000000002, 0000000003, 0000000004], [0000000002, 0000000003, 0000000004]]]')
		click('Right')
		assert_p('Table', 'Content', '[[f01, 1, , [30000, 30001, 30002, 30003], [30000, 30001, 30002, 30003]], [f02, 2, , [30000, 30001, 30002, 30003], [30000, 30001, 30002, 30003]], [f03, 3, , [30000, 30001, 30002, 30003], [30000, 30001, 30002, 30003]], [f04, 4, , [30000, 30001, 30002, 30003], [30000, 30001, 30002, 30003]], [f05, 5, , [30000, 30001, 30002, 30003], [30000, 30001, 30002, 30003]], [f06, 6, , [300000000, 300000001, 300000002, 300000003], [300000000, 300000001, 300000002, 300000003]], [f07, 7, , [300000000, 300000001, 300000002, 300000003], [300000000, 300000001, 300000002, 300000003]], [f08, 8, , [300000000, 300000001, 300000002, 300000003], [300000000, 300000001, 300000002, 300000003]], [f09, 9, , [300000000, 300000001, 300000002, 300000003], [300000000, 300000001, 300000002, 300000003]], [f10, 10, , [300000000, 300000001, 300000002, 300000003], [300000000, 300000001, 300000002, 300000003]], [f11, 11, , [30000.0, 30001.0, 30002.0, 30003.0], [30000.0, 30001.0, 30002.0, 30003.0]], [f12, 12, , [3.0E8, 3.00000001E8, 3.00000002E8, 3.00000003E8], [3.0E8, 3.00000001E8, 3.00000002E8, 3.00000003E8]], [f13, 13, , [true, false, false, false], [true, false, false, false]], [f15, 14, , [\'300000000\',\'300000001\',\'300000002\',\'300000003\'], [\'300000000\',\'300000001\',\'300000002\',\'300000003\']], [f17, 15, , [RETURN, OTHER, SALE, RETURN], [RETURN, OTHER, SALE, RETURN]], [f19, 16, , [0000000003, 0000000004, 0000000005, 0000000006], [0000000003, 0000000004, 0000000005, 0000000006]]]')
		assert_p('TextArea', 'Text', '{30000, 30001, 30002, 30003}	{30000, 30001, 30002, 30003}	{30000, 30001, 30002, 30003}	{30000, 30001, 30002, 30003}	{30000, 30001, 30002, 30003}	{300000000, 300000001, 300000002, 300000003}	{300000000, 300000001, 300000002, 300000003}	{300000000, 300000001, 300000002, 300000003}	{300000000, 300000001, 300000002, 300000003}	{300000000, 300000001, 300000002, 300000003}	{30000.0, 30001.0, 30002.0, 30003.0}	{3.0E8, 3.00000001E8, 3.00000002E8, 3.00000003E8}	{true, false, false, false}	{300000000, 300000001, 300000002, 300000003}	{RETURN, OTHER, SALE, RETURN}	{0000000003, 0000000004, 0000000005, 0000000006}')
		click('Right')
		assert_p('TextArea', 'Text', '{40000, 40001, 40002, 40003, 40004}	{40000, 40001, 40002, 40003, 40004}	{40000, 40001, 40002, 40003, 40004}	{40000, 40001, 40002, 40003, 40004}	{40000, 40001, 40002, 40003, 40004}	{400000000, 400000001, 400000002, 400000003, 400000004}	{400000000, 400000001, 400000002, 400000003, 400000004}	{400000000, 400000001, 400000002, 400000003, 400000004}	{400000000, 400000001, 400000002, 400000003, 400000004}	{400000000, 400000001, 400000002, 400000003, 400000004}	{40000.0, 40001.0, 40002.0, 40003.0, 40004.0}	{4.0E8, 4.00000001E8, 4.00000002E8, 4.00000003E8, 4.00000004E8}	{false, false, false, false, false}	{400000000, 400000001, 400000002, 400000003, 400000004}	{OTHER, SALE, RETURN, OTHER, SALE}	{0000000004, 0000000005, 0000000006, 0000000007, 0000000008}')
		click('Right')
		assert_p('TextArea', 'Text', '{50000, 50001, 50002, 50003, 50004, 50005}	{50000, 50001, 50002, 50003, 50004, 50005}	{50000, 50001, 50002, 50003, 50004, 50005}	{50000, 50001, 50002, 50003, 50004, 50005}	{50000, 50001, 50002, 50003, 50004, 50005}	{500000000, 500000001, 500000002, 500000003, 500000004, 500000005}	{500000000, 500000001, 500000002, 500000003, 500000004, 500000005}	{500000000, 500000001, 500000002, 500000003, 500000004, 500000005}	{500000000, 500000001, 500000002, 500000003, 500000004, 500000005}	{500000000, 500000001, 500000002, 500000003, 500000004, 500000005}	{50000.0, 50001.0, 50002.0, 50003.0, 50004.0, 50005.0}	{5.0E8, 5.00000001E8, 5.00000002E8, 5.00000003E8, 5.00000004E8, 5.00000005E8}	{false, false, false, false, false, false}	{500000000, 500000001, 500000002, 500000003, 500000004, 500000005}	{RETURN, OTHER, SALE, RETURN, OTHER, SALE}	{0000000005, 0000000006, 0000000007, 0000000008, 0000000009, 000000000a}')
		click('Right')
		assert_p('TextArea', 'Text', '{60000, 60001, 60002, 60003, 60004, 60005, 60006}	{60000, 60001, 60002, 60003, 60004, 60005, 60006}	{60000, 60001, 60002, 60003, 60004, 60005, 60006}	{60000, 60001, 60002, 60003, 60004, 60005, 60006}	{60000, 60001, 60002, 60003, 60004, 60005, 60006}	{600000000, 600000001, 600000002, 600000003, 600000004, 600000005, 600000006}	{600000000, 600000001, 600000002, 600000003, 600000004, 600000005, 600000006}	{600000000, 600000001, 600000002, 600000003, 600000004, 600000005, 600000006}	{600000000, 600000001, 600000002, 600000003, 600000004, 600000005, 600000006}	{600000000, 600000001, 600000002, 600000003, 600000004, 600000005, 600000006}	{60000.0, 60001.0, 60002.0, 60003.0, 60004.0, 60005.0, 60006.0}	{6.0E8, 6.00000001E8, 6.00000002E8, 6.00000003E8, 6.00000004E8, 6.00000005E8, 6.00000006E8}	{true, false, false, false, false, false, false}	{600000000, 600000001, 600000002, 600000003, 600000004, 600000005, 600000006}	{RETURN, OTHER, SALE, RETURN, OTHER, SALE, RETURN}	{0000000006, 0000000007, 0000000008, 0000000009, 000000000a, 000000000b, 000000000c}')
		assert_p('Table', 'Content', '[[f01, 1, , [60000, 60001, 60002, 60003, 60004, 60005, 60006], [60000, 60001, 60002, 60003, 60004, 60005, 60006]], [f02, 2, , [60000, 60001, 60002, 60003, 60004, 60005, 60006], [60000, 60001, 60002, 60003, 60004, 60005, 60006]], [f03, 3, , [60000, 60001, 60002, 60003, 60004, 60005, 60006], [60000, 60001, 60002, 60003, 60004, 60005, 60006]], [f04, 4, , [60000, 60001, 60002, 60003, 60004, 60005, 60006], [60000, 60001, 60002, 60003, 60004, 60005, 60006]], [f05, 5, , [60000, 60001, 60002, 60003, 60004, 60005, 60006], [60000, 60001, 60002, 60003, 60004, 60005, 60006]], [f06, 6, , [600000000, 600000001, 600000002, 600000003, 600000004, 600000005, 600000006], [600000000, 600000001, 600000002, 600000003, 600000004, 600000005, 600000006]], [f07, 7, , [600000000, 600000001, 600000002, 600000003, 600000004, 600000005, 600000006], [600000000, 600000001, 600000002, 600000003, 600000004, 600000005, 600000006]], [f08, 8, , [600000000, 600000001, 600000002, 600000003, 600000004, 600000005, 600000006], [600000000, 600000001, 600000002, 600000003, 600000004, 600000005, 600000006]], [f09, 9, , [600000000, 600000001, 600000002, 600000003, 600000004, 600000005, 600000006], [600000000, 600000001, 600000002, 600000003, 600000004, 600000005, 600000006]], [f10, 10, , [600000000, 600000001, 600000002, 600000003, 600000004, 600000005, 600000006], [600000000, 600000001, 600000002, 600000003, 600000004, 600000005, 600000006]], [f11, 11, , [60000.0, 60001.0, 60002.0, 60003.0, 60004.0, 60005.0, 60006.0], [60000.0, 60001.0, 60002.0, 60003.0, 60004.0, 60005.0, 60006.0]], [f12, 12, , [6.0E8, 6.00000001E8, 6.00000002E8, 6.00000003E8, 6.00000004E8, 6.00000005E8, 6.00000006E8], [6.0E8, 6.00000001E8, 6.00000002E8, 6.00000003E8, 6.00000004E8, 6.00000005E8, 6.00000006E8]], [f13, 13, , [true, false, false, false, false, false, false], [true, false, false, false, false, false, false]], [f15, 14, , [\'600000000\',\'600000001\',\'600000002\',\'600000003\',\'600000004\',\'600000005\',\'600000006\'], [\'600000000\',\'600000001\',\'600000002\',\'600000003\',\'600000004\',\'600000005\',\'600000006\']], [f17, 15, , [RETURN, OTHER, SALE, RETURN, OTHER, SALE, RETURN], [RETURN, OTHER, SALE, RETURN, OTHER, SALE, RETURN]], [f19, 16, , [0000000006, 0000000007, 0000000008, 0000000009, 000000000a, 000000000b, 000000000c], [0000000006, 0000000007, 0000000008, 0000000009, 000000000a, 000000000b, 000000000c]]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
	close()
